package com.ly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.entity.Activity;
import com.ly.pojo.vo.ActivityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黑渊白花
 * @date : 2025/2/8 22:07
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {
    IPage<ActivityVO> getAllPage(
            @Param("page") IPage<ActivityVO> page,
            String name, String teamName);

    IPage<ActivityVO> getAuditPage(
            @Param("page") IPage<ActivityVO> page,
            String name, String teamName);

    IPage<ActivityVO> getPage(
            @Param("page") IPage<ActivityVO> page,
            String name, Integer status, Integer teamId);

    ActivityVO getActById(Integer id);

    List<ActivityVO> searchActByType(String typeName);
    List<ActivityVO> getActsByStuId(Integer stuId);

    List<ActivityVO> getFourAct();



}
